
class OscReadRecord {
	List<String> imgs;
	int level;
	int clickCount;
	int createdAt;
	String source;
	String title;
	int type;
	String pubDate;
	String url;
	int commentCount;
	String titleHash;
	int wordCount;
	int subType;
	String authorName;
	int oscId;
	String key;
	int viewCount;
	String desc;

	OscReadRecord({this.imgs, this.level, this.clickCount, this.createdAt, this.source, this.title, this.type, this.pubDate, this.url, this.commentCount, this.titleHash, this.wordCount, this.subType, this.authorName, this.oscId, this.key, this.viewCount, this.desc});

	OscReadRecord.fromJson(Map<String, dynamic> json) {
		imgs = json['imgs']?.cast<String>();
		level = json['level'];
		clickCount = json['click_count'];
		createdAt = json['created_at'];
		source = json['source'];
		title = json['title'];
		type = json['type'];
		pubDate = json['pubDate'];
		url = json['url'];
		commentCount = json['commentCount'];
		titleHash = json['title_hash'];
		wordCount = json['word_count'];
		subType = json['sub_type'];
		authorName = json['authorName'];
		oscId = json['osc_id'];
		key = json['key'];
		viewCount = json['view_count'];
		desc = json['desc'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['imgs'] = this.imgs;
		data['level'] = this.level;
		data['click_count'] = this.clickCount;
		data['created_at'] = this.createdAt;
		data['source'] = this.source;
		data['title'] = this.title;
		data['type'] = this.type;
		data['pubDate'] = this.pubDate;
		data['url'] = this.url;
		data['commentCount'] = this.commentCount;
		data['title_hash'] = this.titleHash;
		data['word_count'] = this.wordCount;
		data['sub_type'] = this.subType;
		data['authorName'] = this.authorName;
		data['osc_id'] = this.oscId;
		data['key'] = this.key;
		data['view_count'] = this.viewCount;
		data['desc'] = this.desc;
		return data;
	}
}
